import request from '@/utils/request'

export const login = data => request({
  method: 'POST',
  url: '/sys/login',
  data
})

export const getUserInfo = () => request({
  url: '/sys/profile'
})

export const updatePassword = data => request({
  url: '/sys/user/updatePass',
  method: 'PUT',
  data
})
